//
//  gongju.h
//  afn
//
//  Created by mac on 2018/4/13.
//  Copyright © 2018年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>
@interface gongju : NSObject


#pragma mark———————————————— afn封装 //依赖afnPOST请求 和FCXRefreshHeaderView 和SVProgressHUD
//url 接口地址
//dic 参数字典
//tableView 用来结束上下拉刷新的状态  不传不结束
//view 当前vc的view 显示菊花
//responseObjectBlock 成功之行的block
+(void)AFNPOSTDataUrl:(NSString *)url
              andDic:(NSDictionary *)dic
        andTableView:(UITableView *)tableview
             andViewController:(UIViewController *)viewController
     andSuccessBlock:(void(^)(id responseObject))responseObjectBlock
       anderrorBlock:(void(^)(void))errorBlock;

#pragma mark———————————————— afn封装 //依赖afnGET请求 和FCXRefreshHeaderView 和SVProgressHUD
//url 接口地址
//dic 参数字典
//tableView 用来结束上下拉刷新的状态  不传不结束
//view 当前vc的view 显示菊花
//responseObjectBlock 成功之行的block
+(void)AFNGETDataUrl:(NSString *)url
               andDic:(NSDictionary *)dic
         andTableView:(UITableView *)tableview
              andView:(UIView *)view
      andSuccessBlock:(void(^)(id responseObject))responseObjectBlock
        anderrorBlock:(void(^)(void))errorBlock;


#pragma mark———————————————— 轮播器(基于SDWebImage开发)
+ (void)getHederImage :(UIViewContentMode )contentMode :(CGRect)rect :(NSArray*)imageUrlArr :(CGFloat)fenYeheight :(UIView *)rootView :(void(^)(int value)) block;

#pragma mark———————-点击图片查看大图(基于Masonry开发)

+(void)LookBigPicture:(NSInteger )index
             imageArr:(NSArray *)imageArr
       imageNameArray:(NSArray *)imageNameArray
       viewController:(UIViewController *)viewController;

#pragma mark———————————————— 仿安卓弹框
+ (void)svpInfo:(NSString *)title;
#pragma mark————————————————判断是否是空字符串
+(BOOL)charIsNil:(NSString *)str;

#pragma mark————————————————得到当前时间搓 转 时间搓
+ (NSString *)NSDateToTimeCuo;


#pragma mark———————————————— 计算文字宽度
+ (CGSize)getNSStringWeight:(NSString *)string andViewWight:(CGFloat)height andFont:(NSInteger)font;
#pragma mark———————————————— 计算文字高度
+ (CGSize)getNSStringSize:(NSString *)string andViewWight:(CGFloat)weight andFont:(NSInteger)font;
#pragma mark———————————————— 跳转 push
+ (void)pushNextViewController:(UIViewController *)nextViewController andRootController:(UIViewController *)rootVc;
#pragma mark———————————————— 验证手机号码
+ (BOOL)isMobileNumber:(NSString *)mobileNum;
+(void)ToLoging:(UIViewController *)controller;
@end
